import service from "./request";

export const getRequest = (params, url) => {
    return service.request({
        method: 'get',
        url,
        params,
        headers : {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}


export const postRequst = (data, url) => {
    return service.request({
        method: 'post',
        url,
        data,
        headers : {
            'Content-Type': 'application/json'
        }
    })
}




